package com.inno.system.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.inno.system.enums.TypeEnum;

import java.io.Serializable;
import java.util.Date;

/**
 * (PlannerBanner)实体类
 *
 * @author makejava
 * @since 2025-01-04 17:17:33
 */
public class PlannerBanner implements Serializable {
    private static final long serialVersionUID = -94048403176853761L;
    /**
     * id
     */
    private Long id;
    /**
     * 轮播图url
     */
    private String picUrl;
    /**
     * 类型
     */
    private String type;
    /**
     * 跳转路径
     */
    private String path;
    /**
     * 排序
     */
    private Integer order;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date createTime;
    /**
     * 是否删除
     */
    private String isDeleted;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setTypeDesc(String type){
        this.type = TypeEnum.getDescByCode(type);
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(String isDeleted) {
        this.isDeleted = isDeleted;
    }

}

